uniform continuity and compact set